<?php
Yii::import('zii.widgets.CPortlet');

class LeftBar extends CPortlet
{
    protected function renderContent(){                        
        $controller = Yii::app()->controller->id;
        $action = Yii::app()->controller->action->id;        
        $user_id = $_SESSION['user_edu_net']['user_id'];
        $data_user = User::getRowById($user_id);
        $data_grade = Grade::getAllRows();
        $data_subject = Subject::getAllRows();        
        $data_group = Group::getRowByUserID($user_id);        
        $this->render("left_bar",array("data_user"=>$data_user,"data_grade"=>$data_grade,"data_subject"=>$data_subject,"data_group"=>$data_group));
    }
}